package com.ruoyi.shop.goods.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import cn.hutool.json.JSONArray;

/**
 * 商品属性对象 shop_goods_attr
 * 
 * @author xuxiang
 * @date 2023-07-03
 */
public class ShopGoodsAttr extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsId;

    /** 属性名称 */
    @Excel(name = "属性名称")
    private String attrName;

    /** 属性值以","拼接 */
    @Excel(name = "属性值")
    private String attrValues;
    
    //配合插件使用
	private String name;

	private JSONArray list;
    
    
    public ShopGoodsAttr() {
    	
    }
    
	public ShopGoodsAttr(String attrName, String attrValues) {
		this.attrName = attrName;
		this.attrValues = attrValues;
	}

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setAttrName(String attrName) 
    {
        this.attrName = attrName;
    }

    public String getAttrName() 
    {
        return attrName;
    }
    public void setAttrValues(String attrValues) 
    {
        this.attrValues = attrValues;
    }

    public String getAttrValues() 
    {
        return attrValues;
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public JSONArray getList() {
		return list;
	}

	public void setList(JSONArray list) {
		this.list = list;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("goodsId", getGoodsId()).append("attrName", getAttrName()).append("attrValues", getAttrValues())
				.append("name", getName()).append("list", getList()).toString();
	}
}
